package kr.totalcall.events
{
	/**
	 * 작업 기록
	 * 2012. 6. 12. / 이규광 / 최초 작성.
	 */
	/**
	 * 내용.
	 * 데이터를 전송할 수 있는 이벤트.
	 * 
	 * @productversion Flex 4.5
	 * @langversion ActionScript 3.0
	 * @playerversion Flash 10.2
	 * @author 이규광.
	 */
	import flash.events.Event;
	
	public class ItemEvent extends Event
	{
		public static const NEW_ITEM:String = "newItem";
		public static const REMOVE_ITEM:String = "removeItem";
		public static const ITEM_SELECT:String = "itemSelect";
		public static const ITEM_CHANGE:String = "itemChange";
		
		public var item:Object;
		
		/**
		 * 생성자
		 */
		public function ItemEvent(type:String, data:Object, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			item = data;
		}
		
		override public function clone():Event{
			return new ItemEvent(type, item, bubbles, cancelable);
		}
	}
}